#include <bits/stdc++.h>
using namespace std;
long long a[100001];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    long long n;
    long long minn = 1000000;
    long long cnt = 0;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a[i];
    }
    for (int i = 1; i <= n; i++)
    {
        if (minn > a[i])
        {
            minn = a[i];
        }
    }
    for (int i = 1; i <= n; i++)
    {
        if (a[i] == minn)
        {
            cnt++;
        }
    }
    cout << cnt;
    return 0;
}
